# Author:lzhan  Date:2020/3/16
s="i love python"

# total=''
#
# for c in s:
#     total=c+total
# print(total)
# s2=s[::-1]
#
# print(s2)
#
# print(''.join(reversed(s)))

info="小明的语文考了90分，数学考了6.5分，英语考了50分"

import re

reg=r'\d+(?:\.\d+)?'

scores=re.findall(reg,info)

i=0
sum=0
for s in scores:
    if float(s)<60:
        i=i+1
    sum=sum+float(s)

print(i)
# round(float,n)
print(round(sum/len(scores),2))



